using System;
using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 社区帖子评论实体类
    /// </summary>
    public class CommunityPostComment : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 帖子ID
        /// </summary>
        public Guid PostId { get; set; }

        /// <summary>
        /// 父评论ID（用于回复）
        /// </summary>
        public Guid? ParentCommentId { get; set; }

        /// <summary>
        /// 回复用户ID（用于回复）
        /// </summary>
        public Guid? ReplyUserId { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 图片列表
        /// </summary>
        public string Images { get; set; }

        /// <summary>
        /// 点赞次数
        /// </summary>
        public int LikeCount { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool IsTop { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public Guid CreatedBy { get; set; }

        /// <summary>
        /// 更新人ID
        /// </summary>
        public Guid? UpdatedBy { get; set; }

        // 导航属性
        public SystemUser User { get; set; }
        public CommunityPost Post { get; set; }
        public CommunityPostComment ParentComment { get; set; }
        public SystemUser ReplyUser { get; set; }
        public ICollection<CommunityPostComment> ChildComments { get; set; }
        public ICollection<CommunityPostCommentLike> Likes { get; set; }
    }
}